﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FBGraph.ClientGenerator.CodeGen;

namespace FBGraph.ClientGenerator.Tests.CodeGen
{
    [TestClass]
    public class AutoPropertyTests
    {
        [TestMethod]
        public void OutputFromType()
        {
            var prop = new AutoProperty("Foo", typeof(String));

            var expected = @"public String Foo { get; set; }
";
            var actual = prop.ToString();

            Assert.AreEqual(expected, actual);
        }
    }
}
